package cn.bdqn.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhou
 * @since 2019-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PsUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    @TableField("userCode")
    private String userCode;

    @TableField("userName")
    private String userName;

    @TableField("userPassword")
    private String userPassword;

    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 入职日期
     */
    @TableField("entryDate")
    private LocalDate entryDate;

    /**
     * 离职日期
     */
    @TableField("dimissionDate")
    private LocalDate dimissionDate;

    @TableField("phoneTel")
    private String phoneTel;

    private String email;

    /**
     * 注册时间
     */
    @TableField("creationTime")
    private LocalDateTime creationTime;

    /**
     * 最后登录时间
     */
    @TableField("lastLoginTime")
    private LocalDateTime lastLoginTime;

    @TableField("createdBy")
    private String createdBy;

    /**
     * 最后修改时间
     */
    @TableField("lastUpdateTime")
    private LocalDateTime lastUpdateTime;

    /**
     * 使用状态1为正常0为冻结
     */
    @TableField("userStatus")
    private Integer userStatus;

    /**
     * 所属角色
     */
    @TableField("roleId")
    private Long roleId;


}
